﻿using System;
using System.Collections.Generic;
using System.Text;

namespace Txt2PajekLarge
{
    public class Node:Object
    {
        private long _lNodeID=-1;
        private string _strNodeName = "";

        public Node() { }

        public Node(long lNodeID, string strNodeName)
        {
            _lNodeID = lNodeID;
            _strNodeName = strNodeName;
        }

        public long NodeID
        {
            get { return _lNodeID; }
            set { _lNodeID = value; }
        }

        public string NodeName
        {
            get { return _strNodeName; }
            set { _strNodeName = value; }
        }

        public override bool Equals(Object obj)
        {
            //Check for null and compare run-time types.
            if (obj == null || GetType() != obj.GetType()) return false;
            Node node = (Node)obj;
            return (this.NodeID==node.NodeID) && (this.NodeName==node.NodeName);
        }
    }
}
